<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
</head>

<body>
    <script>
        // https://sug.so.360.cn/suggest?word=1&callback=aa
        // word 代表搜索关键字
        // callback代表回调函数的名字
        let doms = document.createElement("script");
        let body = document.getElementsByTagName("body")[0];
        doms.src = "https://sug.so.360.cn/suggest?word=1&callback=aa";
        body.appendChild(doms);

        //         // aa("1111")
        //         aa({"errorcode":0,"ext":"nlpv=pcsug9_zc","query":"1","result":[{"word":"163邮箱登录"},{"word":"1688"},{"word":"1688阿里巴巴批发网"},{"word":"1688阿里巴巴官网首页"},{"word":"17173游戏网官网"},{"word":"1688阿里巴巴"},{"word":"163"},{"word":"1精品散人天堂"},{"word":"126邮箱登录"},{"word":"163邮箱入口"}],"src":"other","ssid":"804974454fc143b393b017049fbe2fd7","version":"revise"}
        // )
        //添加的这个script标签最终会得到一段js代码 这段js代码的意思 就是 函数执行

        function aa(val) {
            console.log(val);
        }
    </script>
</body>

</html>